using System.Collections.Generic;

public class UIParalelAnimation : UIAnimationElement
{
	public List<UIAnimationElement> elements = new List<UIAnimationElement>();

	public override bool isPlaying
	{
		get
		{
			foreach (UIAnimationElement element in elements)
			{
				if (element.isPlaying)
				{
					return true;
				}
			}
			return false;
		}
	}

	public override void Play()
	{
		//base.Play();
		//foreach (UIAnimationElement element in elements)
		//{
		//	element.Play();
		//}
	}

	public override void Stop()
	{
		foreach (UIAnimationElement element in elements)
		{
			element.Stop();
		}
	}
}
